package com.clqteam.serviceimpl;

import java.util.List;

import com.clqteam.dao.InsertTempOrderDao;
import com.clqteam.daoimpl.InsertTempOrderDaoImpl;
import com.clqteam.model.Product;
import com.clqteam.service.InsertTempOrderService;

public class InsertTempOrderServiceImpl implements InsertTempOrderService{

	InsertTempOrderDao itoDao = new InsertTempOrderDaoImpl();
	
	@Override
	public int insetTempOrderInfo(int ptId, int ptAmount,String tbName) {
		return itoDao.insetTempOrderInfo(ptId, ptAmount,tbName);		
	}

	@Override
	public List<Product> findExist(String tbName) {
		
		return itoDao.getExist(tbName);
	}

	@Override
	public int updateTempOrderInfo(int ptId, int ptAmount,String tbName) {
		
		return itoDao.updateTempOrderInfo(ptId, ptAmount,tbName);
	}

}
